import request from '@/utils/axios';
import appName from "@/api/appName";

export function queryList(params) {
  return request({
    url: appName.NB + '/maintain/goodAgent/queryList',
    method: 'post',
    data: params
  })
}

export function editData(params) {
  return request({
    url: appName.NB + '/maintain/goodAgent/editData',
    method: 'post',
    data: params
  })
}

export function deleteData(params) {
  return request({
    url: appName.NB + '/maintain/goodAgent/deleteData',
    method: 'post',
    data: params
  })
}

export function checkAgntnum(params) {
  return request({
    url: appName.NB + '/maintain/goodAgent/checkAgntnum',
    method: 'post',
    data: params,
    timeout: 20000
  })
}